package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————转班类
 * @date 2019-12-17 16:54
 */
@Entity
@Table(name = "transfer_class")
public class TransferClass implements Serializable {

    private static final long serialVersionUID = -7889927377276984176L;

    @Id
    @GeneratedValue
    @Column(name = "transfer_class_Id")
    private Integer transferClassId;//转班ID

    @Column(name = "user_Id")
    private Integer userId;//学生ID

    @Column(name = "originalClass", length = 32)
    private String originalClass;//原有班级

    @Column(name = "nowClass", length = 32)
    private String nowClass;//现有班级

    @Column(name = "transferStatus", length = 32)
    private String transferStatus;//转班状态

    @Column(name = "transferReason", length = 255)
    private String transferReason;//转班原因

    @Column(name = "comment", length = 255)
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public TransferClass() {
        //无参构造
    }


    public Integer getTransferClassId() {
        return transferClassId;
    }


    public void setTransferClassId(Integer transferClassId) {
        this.transferClassId = transferClassId;
    }


    public Integer getUserId() {
        return userId;
    }


    public void setUserId(Integer userId) {
        this.userId = userId;
    }


    public String getOriginalClass() {
        return originalClass;
    }

    public void setOriginalClass(String originalClass) {
        this.originalClass = originalClass;
    }

    public String getNowClass() {
        return nowClass;
    }

    public void setNowClass(String nowClass) {
        this.nowClass = nowClass;
    }

    public String getTransferStatus() {
        return transferStatus;
    }

    public void setTransferStatus(String transferStatus) {
        this.transferStatus = transferStatus;
    }

    public String getTransferReason() {
        return transferReason;
    }

    public void setTransferReason(String transferReason) {
        this.transferReason = transferReason;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "TransferClass [transferClassId=" + transferClassId + ", userId=" + userId + ", originalClass="
                + originalClass + ", nowClass=" + nowClass + ", transferStatus=" + transferStatus + ", transferReason="
                + transferReason + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime=" + updateTime
                + "]";
    }


}
